\documentclass[aspectratio=43,notheorems,16pt,utf8,fullscreen=true,bookmarks=false]{beamer}
\usepackage{../Styles/Personal_data}

\usepackage[english,russian]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fontspec}



\usefonttheme[onlymath]{serif}

\usepackage{amsfonts,amsmath,amssymb}
\usepackage{cite,enumerate,float,indentfirst}

\setsansfont{Arial} %Без этого русский не работает


\usepackage{xcolor}

\usepackage{graphicx}
\usepackage{caption}
\usepackage{ragged2e}
\usepackage{pgfpages}

\usepackage{multirow} %объединение строк в таблицах
\usepackage{tabularx}

% \parskip=0.25cm
% \pgfpagesuselayout{resize to}[a4paper,border shrink=5mm,landscape]
\definecolor{chromeyellow}{rgb}{1.0, 0.65, 0.0}

\captionsetup{labelsep=period}
\justifying
\renewcommand{\raggedright}{\leftskip=0pt \rightskip=0pt plus 0cm}
\setbeamersize{text margin left=0cm, text margin right=0cm}
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{alert}{bg=chromeyellow}


\graphicspath{{../Images/}}   

\usetheme[]{Boadilla}

\definecolor{maincolor}{RGB}{75,92,108}

\setbeamertemplate{blocks}[rounded][shadow=false]
\addtobeamertemplate{block begin}{\pgfsetfillopacity{0.8}}{\pgfsetfillopacity{1}}
\setbeamercolor{structure}{fg=maincolor}
\setbeamercolor{frametitle}{bg=maincolor, fg=white}
\setbeamertemplate{enumerate items}[circle]
\setbeamertemplate{itemize items}[circle]

\setbeamerfont{frametitle}{size=\large\bf}

\beamertemplatenavigationsymbolsempty

\setbeamercolor{footline}{fg=gray}
\addtocounter{framenumber}{-1}
\setbeamertemplate{headline}{}
\setbeamertemplate{footline}{
  	\leavevmode%
  	\hbox{%
  		% \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{}%
    % 		\small \student
  		% \end{beamercolorbox}%
  		\begin{beamercolorbox}[wd=.75\paperwidth,ht=2.25ex,dp=1ex,center]{}% 
  		\end{beamercolorbox}%
  		\begin{beamercolorbox}[wd=.25\paperwidth,ht=2.25ex,dp=5.5ex,right]{}%
			{\color{maincolor}\scriptsize Слайд \insertframenumber{}} \hspace{1cm} 
  		\end{beamercolorbox}}%
  	\vskip0pt%
	}
\newtheorem{theorem}{Теорема}

\usebackgroundtemplate{\includegraphics[width=\paperwidth,height=\paperheight]{Images/logos/blank_main.png}}

\begin{document}
{
\usebackgroundtemplate{\includegraphics[width=\paperwidth,height=\paperheight]{Images/logos/blank_first.png}}
\setbeamertemplate{footline}{} 
\begin{frame}
		\vspace{1cm}	
		\begin{center}
			\large\textbf{\studentIm} \\
			\vspace{1cm}
			\thema \\ 
			\vspace{1cm}
			\normalsize Направление \major
		\end{center}
		\vspace{0.5cm}
		\begin{minipage}[h]{0.54\linewidth}
			\begin{center}
				Научный руководитель \\
				\ad 
			\end{center} 
		\end{minipage}
		\hfill
		\begin{minipage}[h]{0.4\linewidth}
		\begin{center}
			\small \adviser
		\end{center}
		\end{minipage}

\end{frame}
}
\normalsize


\include{slides}
{
\usebackgroundtemplate{\includegraphics[width=\paperwidth,height=\paperheight]{Images/logos/blank_last.png}}
\setbeamertemplate{headline}{}
\setbeamertemplate{footline}{} 
\begin{frame}
        \vspace{1.25cm}
	\begin{center}
		\LARGE Спасибо за внимание!
	\end{center}
\end{frame}
}
\end{document} 